CC=g++
CFLAGS=-Wall 
BASEPATH = ~/thesis/cpp/piProc/src
exeName = demo
objMain = linkTester
obj1 = link
obj2 = linkslist
objects = linkTester.o \
					$(BASEPATH)/comlink/$(obj1)/$(obj1).o \
					$(BASEPATH)/comlink/$(obj2)/$(obj2).o

$(exeName): $(objects)
	$(CC) -o $(exeName) $(objects)
$(objMain): linkTester.cpp
	$(CC) -o linkTester.cpp
$(obj1).o: $(BASEPATH)/comlink/$(obj1)/$(obj1).cpp
	$(CC) -o $(BASEPATH)/comlink/$(obj1)/$(obj1).cpp
$(obj2).o: $(BASEPATH)/comlink/$(obj2)/$(obj2).cpp
	$(CC) -o $(BASEPATH)/comlink/$(obj2)/$(obj2).cpp

clean:
	rm -f $(exeName) $(objects)
